<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
    <title>PHPXRef 0.7.1 : Tomato Project : /core/v0.1/ext/upload.class.php source</title>
    <link rel="stylesheet" href="../../../sample.css" type="text/css">
    <link rel="stylesheet" href="../../../sample-print.css" type="text/css" media="print">
    <style id="hilight" type="text/css"></style>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000" link="#801800" vlink="#300540" alink="#ffffff">
<table class="pagetitle" width="100%">
	<tr>
        <td valign="top" class="pagetitle">
            [ <a href="../../../index.html">Index</a> ] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_classes/index.html">Classes</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_functions/index.html">Functions</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_variables/index.html">Variables</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_constants/index.html">Constants</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_tables/index.html">Tables</a>]
        </td>
        <td align="right" class="pagetitle">
		    <h2 style="margin-bottom: 0px">PHP Cross Reference of Tomato Project</h2>
	    </td>
    </tr>
</table>


<!-- Generated by PHPXref 0.7.1 at Thu Sep 10 15:54:52 2020 -->
<!-- PHPXref (c) 2000-2010 Gareth Watts - gareth@omnipotent.net -->
<!-- http://phpxref.sourceforge.net/ -->

<script src="../../../phpxref.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
ext='.html';
relbase='../../../';
subdir='core/v0.1/ext';
filename='upload.class.php.source.html';
cookiekey='phpxref';
handleNavFrame(relbase, subdir, filename);

// -->
</script>
<script language="JavaScript" type="text/javascript">
if (gwGetCookie('xrefnav')=='off')
  document.write('<p class="navlinks">[ <a href="javascript:navOn()">Show Explorer<\/a> ]<\/p>');
else
  document.write('<p class="navlinks">[ <a href="javascript:navOff()">Hide Explorer<\/a> ]<\/p>');
</script>
<noscript>
<p class="navlinks">
[ <a href="../../../nav.html" target="_top">Show Explorer</a> ]
[ <a href="index.html" target="_top">Hide Navbar</a> ]
</p>
</noscript>
<script language="JavaScript" type="text/javascript">
<!--

document.writeln('<table align="right" class="searchbox-link"><tr><td><a class="searchbox-link" href="javascript:void(0)" onMouseOver="showSearchBox()">Search</a><br>');
document.writeln('<table border="0" cellspacing="0" cellpadding="0" class="searchbox" id="searchbox">');
document.writeln('<tr><td class="searchbox-title">');
document.writeln('<a class="searchbox-title" href="javascript:showSearchPopup()">Search History +</a>');
document.writeln('<\/td><\/tr>');

document.writeln('<tr><td class="searchbox-body" id="searchbox-body">');
document.writeln('<form name="search" style="margin:0px; padding:0px" onSubmit=\'return jump()\'>');
document.writeln('<a class="searchbox-body" href="../../../_classes/index.html">Class<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="classname"><br>');
document.writeln('<a id="funcsearchlink" class="searchbox-body" href="../../../_functions/index.html">Function<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="funcname"><br>');
document.writeln('<a class="searchbox-body" href="../../../_variables/index.html">Variable<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="varname"><br>');
document.writeln('<a class="searchbox-body" href="../../../_constants/index.html">Constant<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="constname"><br>');
document.writeln('<a class="searchbox-body" href="../../../_tables/index.html">Table<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="tablename"><br>');
document.writeln('<input type="submit" class="searchbox-button" value="Search">');
document.writeln('<\/form>');
document.writeln('<\/td><\/tr><\/table>');
document.writeln('<\/td><\/tr><\/table>');
// -->
</script>
<div id="search-popup" class="searchpopup"><p id="searchpopup-title" class="searchpopup-title">title</p><div id="searchpopup-body" class="searchpopup-body">Body</div><p class="searchpopup-close"><a href="javascript:gwCloseActive()">[close]</a></p></div>
<h2 class="listing-heading"><a href="./index.html">/core/v0.1/ext/</a> -> <a href="upload.class.php.html">upload.class.php</a> (source)</h2>
<div class="listing">
<p class="viewlinks">[<a href="upload.class.php.html">Summary view</a>]
[<a href="javascript:window.print();">Print</a>]
[<a href="upload.class.php.source.txt" target="_new">Text view</a>]
</p>
<pre>
<a name="l1"><span class="linenum">   1</span></a>  &lt;?php
<a name="l2"><span class="linenum">   2</span></a>  <span class="comment">/**</span>
<a name="l3"><span class="linenum">   3</span></a>  <span class="comment"> * $conf['path'] = P_PUBLIC . 'uploads/img';</span>
<a name="l4"><span class="linenum">   4</span></a>  <span class="comment"> * $conf['allowType'] = array('jpg','gif','png');</span>
<a name="l5"><span class="linenum">   5</span></a>  <span class="comment"> * $conf['maxSize'] = 1024*1024;</span>
<a name="l6"><span class="linenum">   6</span></a>  <span class="comment"> * $up = new upload($conf);</span>
<a name="l7"><span class="linenum">   7</span></a>  <span class="comment"> * $result = $up-&gt;upload(true);//参数true遇到错误继续，返回上传的文件信息，键名对应表单的name值</span>
<a name="l8"><span class="linenum">   8</span></a>  <span class="comment"> * $info = $up-&gt;getInfo();//返回上传文件信息，索引数组</span>
<a name="l9"><span class="linenum">   9</span></a>  <span class="comment"> * $err = $up-&gt;getError();//返回错误信息，数组</span>
<a name="l10"><span class="linenum">  10</span></a>  <span class="comment"> */</span>
<a name="l11"><span class="linenum">  11</span></a>  namespace ext;
<a name="l12"><span class="linenum">  12</span></a>  
<a name="l13"><span class="linenum">  13</span></a>  <span class="keyword">class </span><a class="class" onClick="logClass('upload')" href="../../../_classes/upload.html" onMouseOver="classPopup(event,'upload')">upload</a>
<a name="l14"><span class="linenum">  14</span></a>  {
<a name="l15"><span class="linenum">  15</span></a>      private static <a class="var it237" onMouseOver="hilite(237)" onMouseOut="lolite()" onClick="logVariable('errorMsg')" href="../../../_variables/errorMsg.html">$errorMsg</a>;
<a name="l16"><span class="linenum">  16</span></a>      private <a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a>; <span class="comment">//上传目录</span>
<a name="l17"><span class="linenum">  17</span></a>      private <a class="var it238" onMouseOver="hilite(238)" onMouseOut="lolite()" onClick="logVariable('subPath')" href="../../../_variables/subPath.html">$subPath</a>; <span class="comment">//子目录</span>
<a name="l18"><span class="linenum">  18</span></a>      private <a class="var it239" onMouseOver="hilite(239)" onMouseOut="lolite()" onClick="logVariable('allowType')" href="../../../_variables/allowType.html">$allowType</a>; <span class="comment">//允许的文件后缀</span>
<a name="l19"><span class="linenum">  19</span></a>      private <a class="var it240" onMouseOver="hilite(240)" onMouseOut="lolite()" onClick="logVariable('maxSize')" href="../../../_variables/maxSize.html">$maxSize</a>; <span class="comment">//允许的文件大小</span>
<a name="l20"><span class="linenum">  20</span></a>      private <a class="var it241" onMouseOver="hilite(241)" onMouseOut="lolite()" onClick="logVariable('randName')" href="../../../_variables/randName.html">$randName</a>; <span class="comment">//是否随机命名</span>
<a name="l21"><span class="linenum">  21</span></a>      private <a class="var it242" onMouseOver="hilite(242)" onMouseOut="lolite()" onClick="logVariable('setName')" href="../../../_variables/setName.html">$setName</a>; <span class="comment">//指定文件名</span>
<a name="l22"><span class="linenum">  22</span></a>      private <a class="var it243" onMouseOver="hilite(243)" onMouseOut="lolite()" onClick="logVariable('savePath')" href="../../../_variables/savePath.html">$savePath</a>; <span class="comment">//文件保存目录，根据$path和$subPath自动生成，不可指定</span>
<a name="l23"><span class="linenum">  23</span></a>      private <a class="var it244" onMouseOver="hilite(244)" onMouseOut="lolite()" onClick="logVariable('filesInfo')" href="../../../_variables/filesInfo.html">$filesInfo</a>; <span class="comment">//原始文件信息</span>
<a name="l24"><span class="linenum">  24</span></a>      private <a class="var it5" onMouseOver="hilite(5)" onMouseOut="lolite()" onClick="logVariable('error')" href="../../../_variables/error.html">$error</a>; <span class="comment">//错误信息</span>
<a name="l25"><span class="linenum">  25</span></a>      private <a class="var it245" onMouseOver="hilite(245)" onMouseOut="lolite()" onClick="logVariable('mapping')" href="../../../_variables/mapping.html">$mapping</a>; <span class="comment">//上传文件信息的索引映射</span>
<a name="l26"><span class="linenum">  26</span></a>      private <a class="var it189" onMouseOver="hilite(189)" onMouseOut="lolite()" onClick="logVariable('info')" href="../../../_variables/info.html">$info</a>; <span class="comment">//上传文件的信息</span>
<a name="l27"><span class="linenum">  27</span></a>  
<a name="l28"><span class="linenum">  28</span></a>      public function <a class="function" onClick="logFunction('__construct')" href="../../../_functions/__construct.html" onMouseOver="funcPopup(event,'__construct')">__construct</a>(<a class="var it246" onMouseOver="hilite(246)" onMouseOut="lolite()" onClick="logVariable('conf')" href="../../../_variables/conf.html">$conf</a> = null)
<a name="l29"><span class="linenum">  29</span></a>      {
<a name="l30"><span class="linenum">  30</span></a>          if (<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('checkLength')" href="../../../_functions/checklength.html" onMouseOver="funcPopup(event,'checklength')">checkLength</a>()) {
<a name="l31"><span class="linenum">  31</span></a>              self::<a class="var it237" onMouseOver="hilite(237)" onMouseOut="lolite()" onClick="logVariable('errorMsg')" href="../../../_variables/errorMsg.html">$errorMsg</a> = array(
<a name="l32"><span class="linenum">  32</span></a>                  1 =&gt; '上传的文件超过了 PHP.ini 中 upload_max_filesize 选项限制的值',
<a name="l33"><span class="linenum">  33</span></a>                  2 =&gt; '上传文件的大小超过了 HTML 表单中 MAX_FILE_SIZE 选项指定的值',
<a name="l34"><span class="linenum">  34</span></a>                  3 =&gt; '文件只有部分被上传',
<a name="l35"><span class="linenum">  35</span></a>                  4 =&gt; '没有文件被上传',
<a name="l36"><span class="linenum">  36</span></a>                  6 =&gt; '找不到临时文件夹',
<a name="l37"><span class="linenum">  37</span></a>                  7 =&gt; '文件写入失败',
<a name="l38"><span class="linenum">  38</span></a>              );
<a name="l39"><span class="linenum">  39</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('path')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/path.html">path</a> = <a class="constant" onClick="logConstant('P_IN')" href="../../../_constants/P_IN.html" onMouseOver="constPopup(event,'P_IN')">P_IN</a> . 'uploads';
<a name="l40"><span class="linenum">  40</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('randName')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/randName.html">randName</a> = true;
<a name="l41"><span class="linenum">  41</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('subPath')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/subPath.html">subPath</a> = false;
<a name="l42"><span class="linenum">  42</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('allowType')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/allowType.html">allowType</a> = array('.jpg', '.gif', '.png', '.rar', '.zip', '.mp4', '.flv', '.xls');
<a name="l43"><span class="linenum">  43</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('maxSize')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/maxSize.html">maxSize</a> = 2097152;
<a name="l44"><span class="linenum">  44</span></a>              if (<a class="var it246" onMouseOver="hilite(246)" onMouseOut="lolite()" onClick="logVariable('conf')" href="../../../_variables/conf.html">$conf</a>) {
<a name="l45"><span class="linenum">  45</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('set')" href="../../../_functions/set.html" onMouseOver="funcPopup(event,'set')">set</a>(<a class="var it246" onMouseOver="hilite(246)" onMouseOut="lolite()" onClick="logVariable('conf')" href="../../../_variables/conf.html">$conf</a>);
<a name="l46"><span class="linenum">  46</span></a>              }
<a name="l47"><span class="linenum">  47</span></a>  
<a name="l48"><span class="linenum">  48</span></a>          }
<a name="l49"><span class="linenum">  49</span></a>      }
<a name="l50"><span class="linenum">  50</span></a>  
<a name="l51"><span class="linenum">  51</span></a>      <span class="comment">/**</span>
<a name="l52"><span class="linenum">  52</span></a>  <span class="comment">     * 设置参数</span>
<a name="l53"><span class="linenum">  53</span></a>  <span class="comment">     * @param [string,array] $name  [description]</span>
<a name="l54"><span class="linenum">  54</span></a>  <span class="comment">     * @param [type] $value [description]</span>
<a name="l55"><span class="linenum">  55</span></a>  <span class="comment">     */</span>
<a name="l56"><span class="linenum">  56</span></a>      public function <a class="function" onClick="logFunction('Set')" href="../../../_functions/set.html" onMouseOver="funcPopup(event,'set')">Set</a>(<a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a>, <a class="var it27" onMouseOver="hilite(27)" onMouseOut="lolite()" onClick="logVariable('value')" href="../../../_variables/value.html">$value</a> = null)
<a name="l57"><span class="linenum">  57</span></a>      {
<a name="l58"><span class="linenum">  58</span></a>          if (<a class="phpfunction" onClick="logFunction('is_array')" href="../../../_functions/is_array.html" onMouseOver="phpfuncPopup(event,'is_array')">is_array</a>(<a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a>)) {
<a name="l59"><span class="linenum">  59</span></a>              foreach (<a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a> as <a class="var it95" onMouseOver="hilite(95)" onMouseOut="lolite()" onClick="logVariable('k')" href="../../../_variables/k.html">$k</a> =&gt; <a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>) {
<a name="l60"><span class="linenum">  60</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="var it95" onMouseOver="hilite(95)" onMouseOut="lolite()" onClick="logVariable('k')" href="../../../_variables/k.html">$k</a> = <a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>;
<a name="l61"><span class="linenum">  61</span></a>              }
<a name="l62"><span class="linenum">  62</span></a>          } else {
<a name="l63"><span class="linenum">  63</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a> = <a class="var it27" onMouseOver="hilite(27)" onMouseOut="lolite()" onClick="logVariable('value')" href="../../../_variables/value.html">$value</a>;
<a name="l64"><span class="linenum">  64</span></a>          }
<a name="l65"><span class="linenum">  65</span></a>      }
<a name="l66"><span class="linenum">  66</span></a>  
<a name="l67"><span class="linenum">  67</span></a>      <span class="comment">/**</span>
<a name="l68"><span class="linenum">  68</span></a>  <span class="comment">     * 获取错误信息</span>
<a name="l69"><span class="linenum">  69</span></a>  <span class="comment">     * @return [array] [description]</span>
<a name="l70"><span class="linenum">  70</span></a>  <span class="comment">     */</span>
<a name="l71"><span class="linenum">  71</span></a>      public function <a class="function" onClick="logFunction('GetError')" href="../../../_functions/geterror.html" onMouseOver="funcPopup(event,'geterror')">GetError</a>()
<a name="l72"><span class="linenum">  72</span></a>      {
<a name="l73"><span class="linenum">  73</span></a>          return <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('error')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/error.html">error</a>;
<a name="l74"><span class="linenum">  74</span></a>      }
<a name="l75"><span class="linenum">  75</span></a>  
<a name="l76"><span class="linenum">  76</span></a>      <span class="comment">/**</span>
<a name="l77"><span class="linenum">  77</span></a>  <span class="comment">     * [执行上传操作]</span>
<a name="l78"><span class="linenum">  78</span></a>  <span class="comment">     * @param  boolean $ignore [遇到上传错误是否继续]</span>
<a name="l79"><span class="linenum">  79</span></a>  <span class="comment">     * @return [array]         [数组键名对应form表单的name]</span>
<a name="l80"><span class="linenum">  80</span></a>  <span class="comment">     */</span>
<a name="l81"><span class="linenum">  81</span></a>      public function <a class="function" onClick="logFunction('Upload')" href="../../../_functions/upload.html" onMouseOver="funcPopup(event,'upload')">Upload</a>(<a class="var it74" onMouseOver="hilite(74)" onMouseOut="lolite()" onClick="logVariable('ignore')" href="../../../_variables/ignore.html">$ignore</a> = false)
<a name="l82"><span class="linenum">  82</span></a>      {
<a name="l83"><span class="linenum">  83</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('getFiles')" href="../../../_functions/getfiles.html" onMouseOver="funcPopup(event,'getfiles')">getFiles</a>();
<a name="l84"><span class="linenum">  84</span></a>          if (empty(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a>)) {
<a name="l85"><span class="linenum">  85</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('error')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/error.html">error</a>[] = &quot;没有合法的上传文件&quot;;
<a name="l86"><span class="linenum">  86</span></a>              return false;
<a name="l87"><span class="linenum">  87</span></a>          }
<a name="l88"><span class="linenum">  88</span></a>          if ((!<a class="var it74" onMouseOver="hilite(74)" onMouseOut="lolite()" onClick="logVariable('ignore')" href="../../../_variables/ignore.html">$ignore</a> &amp;&amp; <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('error')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/error.html">error</a>) || !<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('makeDir')" href="../../../_functions/makedir.html" onMouseOver="funcPopup(event,'makedir')">makeDir</a>()) {
<a name="l89"><span class="linenum">  89</span></a>              return false;
<a name="l90"><span class="linenum">  90</span></a>          }
<a name="l91"><span class="linenum">  91</span></a>  
<a name="l92"><span class="linenum">  92</span></a>          foreach (<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['name'] as <a class="var it95" onMouseOver="hilite(95)" onMouseOut="lolite()" onClick="logVariable('k')" href="../../../_variables/k.html">$k</a> =&gt; <a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>) {
<a name="l93"><span class="linenum">  93</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('setFileInfo')" href="../../../_functions/setfileinfo.html" onMouseOver="funcPopup(event,'setfileinfo')">setFileInfo</a>(<a class="var it95" onMouseOver="hilite(95)" onMouseOut="lolite()" onClick="logVariable('k')" href="../../../_variables/k.html">$k</a>);
<a name="l94"><span class="linenum">  94</span></a>              <a class="var it247" onMouseOver="hilite(247)" onMouseOut="lolite()" onClick="logVariable('move')" href="../../../_variables/move.html">$move</a> = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('moveFile')" href="../../../_functions/movefile.html" onMouseOver="funcPopup(event,'movefile')">moveFile</a>(<a class="var it95" onMouseOver="hilite(95)" onMouseOut="lolite()" onClick="logVariable('k')" href="../../../_variables/k.html">$k</a>);
<a name="l95"><span class="linenum">  95</span></a>              if (!<a class="var it74" onMouseOver="hilite(74)" onMouseOut="lolite()" onClick="logVariable('ignore')" href="../../../_variables/ignore.html">$ignore</a> &amp;&amp; !<a class="var it247" onMouseOver="hilite(247)" onMouseOut="lolite()" onClick="logVariable('move')" href="../../../_variables/move.html">$move</a>) {
<a name="l96"><span class="linenum">  96</span></a>                  return false;
<a name="l97"><span class="linenum">  97</span></a>              }
<a name="l98"><span class="linenum">  98</span></a>  
<a name="l99"><span class="linenum">  99</span></a>          }
<a name="l100"><span class="linenum"> 100</span></a>          return <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>;
<a name="l101"><span class="linenum"> 101</span></a>      }
<a name="l102"><span class="linenum"> 102</span></a>  
<a name="l103"><span class="linenum"> 103</span></a>      <span class="comment">/**</span>
<a name="l104"><span class="linenum"> 104</span></a>  <span class="comment">     * 返回文件信息</span>
<a name="l105"><span class="linenum"> 105</span></a>  <span class="comment">     * @param  boolean $index [是否索引数组]</span>
<a name="l106"><span class="linenum"> 106</span></a>  <span class="comment">     * @return [type]         [description]</span>
<a name="l107"><span class="linenum"> 107</span></a>  <span class="comment">     */</span>
<a name="l108"><span class="linenum"> 108</span></a>      public function <a class="function" onClick="logFunction('GetInfo')" href="../../../_functions/getinfo.html" onMouseOver="funcPopup(event,'getinfo')">GetInfo</a>(<a class="var it248" onMouseOver="hilite(248)" onMouseOut="lolite()" onClick="logVariable('index')" href="../../../_variables/index.html">$index</a> = true)
<a name="l109"><span class="linenum"> 109</span></a>      {
<a name="l110"><span class="linenum"> 110</span></a>          return <a class="var it248" onMouseOver="hilite(248)" onMouseOut="lolite()" onClick="logVariable('index')" href="../../../_variables/index.html">$index</a> ? <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a> : <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>;
<a name="l111"><span class="linenum"> 111</span></a>      }
<a name="l112"><span class="linenum"> 112</span></a>  
<a name="l113"><span class="linenum"> 113</span></a>      <span class="comment">/**</span>
<a name="l114"><span class="linenum"> 114</span></a>  <span class="comment">     * 获取文件基本信息</span>
<a name="l115"><span class="linenum"> 115</span></a>  <span class="comment">     * @return [type] [description]</span>
<a name="l116"><span class="linenum"> 116</span></a>  <span class="comment">     */</span>
<a name="l117"><span class="linenum"> 117</span></a>      private function <a class="function" onClick="logFunction('getFiles')" href="../../../_functions/getfiles.html" onMouseOver="funcPopup(event,'getfiles')">getFiles</a>()
<a name="l118"><span class="linenum"> 118</span></a>      {
<a name="l119"><span class="linenum"> 119</span></a>          <a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> = 0;
<a name="l120"><span class="linenum"> 120</span></a>          <a class="var it191" onMouseOver="hilite(191)" onMouseOut="lolite()" onClick="logVariable('arr')" href="../../../_variables/arr.html">$arr</a> = <a class="phpfunction" onClick="logFunction('array_keys')" href="../../../_functions/array_keys.html" onMouseOver="phpfuncPopup(event,'array_keys')">array_keys</a>(<a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>);
<a name="l121"><span class="linenum"> 121</span></a>          foreach (<a class="var it191" onMouseOver="hilite(191)" onMouseOut="lolite()" onClick="logVariable('arr')" href="../../../_variables/arr.html">$arr</a> as <a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>) {
<a name="l122"><span class="linenum"> 122</span></a>              if (<a class="phpfunction" onClick="logFunction('is_array')" href="../../../_functions/is_array.html" onMouseOver="phpfuncPopup(event,'is_array')">is_array</a>(<a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name'])) {
<a name="l123"><span class="linenum"> 123</span></a>                  <a class="var it107" onMouseOver="hilite(107)" onMouseOut="lolite()" onClick="logVariable('keys')" href="../../../_variables/keys.html">$keys</a> = <a class="phpfunction" onClick="logFunction('array_keys')" href="../../../_functions/array_keys.html" onMouseOver="phpfuncPopup(event,'array_keys')">array_keys</a>(<a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name']);
<a name="l124"><span class="linenum"> 124</span></a>                  foreach (<a class="var it107" onMouseOver="hilite(107)" onMouseOut="lolite()" onClick="logVariable('keys')" href="../../../_variables/keys.html">$keys</a> as <a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>) {
<a name="l125"><span class="linenum"> 125</span></a>                      if (empty(<a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name'][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>])) {
<a name="l126"><span class="linenum"> 126</span></a>                          continue;
<a name="l127"><span class="linenum"> 127</span></a>                      }
<a name="l128"><span class="linenum"> 128</span></a>  
<a name="l129"><span class="linenum"> 129</span></a>                      <a class="var it250" onMouseOver="hilite(250)" onMouseOut="lolite()" onClick="logVariable('pathinfo')" href="../../../_variables/pathinfo.html">$pathinfo</a> = <a class="phpfunction" onClick="logFunction('pathinfo')" href="../../../_functions/pathinfo.html" onMouseOver="phpfuncPopup(event,'pathinfo')">pathinfo</a>(<a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name'][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>]);
<a name="l130"><span class="linenum"> 130</span></a>                      <a class="var it251" onMouseOver="hilite(251)" onMouseOut="lolite()" onClick="logVariable('suffix')" href="../../../_variables/suffix.html">$suffix</a> = <a class="var it250" onMouseOver="hilite(250)" onMouseOut="lolite()" onClick="logVariable('pathinfo')" href="../../../_variables/pathinfo.html">$pathinfo</a>['extension'] ? '.' . <a class="phpfunction" onClick="logFunction('strtolower')" href="../../../_functions/strtolower.html" onMouseOver="phpfuncPopup(event,'strtolower')">strtolower</a>(<a class="var it250" onMouseOver="hilite(250)" onMouseOut="lolite()" onClick="logVariable('pathinfo')" href="../../../_variables/pathinfo.html">$pathinfo</a>['extension']) : '';
<a name="l131"><span class="linenum"> 131</span></a>                      if (!<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('check')" href="../../../_functions/check.html" onMouseOver="funcPopup(event,'check')">check</a>(<a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name'][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>], <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['size'][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>], <a class="var it251" onMouseOver="hilite(251)" onMouseOut="lolite()" onClick="logVariable('suffix')" href="../../../_variables/suffix.html">$suffix</a>, <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['error'][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>])) {
<a name="l132"><span class="linenum"> 132</span></a>                          continue;
<a name="l133"><span class="linenum"> 133</span></a>                      }
<a name="l134"><span class="linenum"> 134</span></a>  
<a name="l135"><span class="linenum"> 135</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['suffix'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it251" onMouseOver="hilite(251)" onMouseOut="lolite()" onClick="logVariable('suffix')" href="../../../_variables/suffix.html">$suffix</a>;
<a name="l136"><span class="linenum"> 136</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['name'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name'][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>];
<a name="l137"><span class="linenum"> 137</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['type'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['type'][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>];
<a name="l138"><span class="linenum"> 138</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['size'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['size'][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>];
<a name="l139"><span class="linenum"> 139</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['tmp_name'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['tmp_name'][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>];
<a name="l140"><span class="linenum"> 140</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>]['name'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('getFileName')" href="../../../_functions/getfilename.html" onMouseOver="funcPopup(event,'getfilename')">getFileName</a>(<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>);
<a name="l141"><span class="linenum"> 141</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>]['suffix'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['suffix'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>];
<a name="l142"><span class="linenum"> 142</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>]['originName'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['name'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>];
<a name="l143"><span class="linenum"> 143</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>]['type'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['type'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>];
<a name="l144"><span class="linenum"> 144</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>]['size'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['size'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>];
<a name="l145"><span class="linenum"> 145</span></a>                      <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a>[<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>][<a class="var it26" onMouseOver="hilite(26)" onMouseOut="lolite()" onClick="logVariable('key')" href="../../../_variables/key.html">$key</a>];
<a name="l146"><span class="linenum"> 146</span></a>                      ++<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>;
<a name="l147"><span class="linenum"> 147</span></a>                  }
<a name="l148"><span class="linenum"> 148</span></a>              } else {
<a name="l149"><span class="linenum"> 149</span></a>                  if (empty(<a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name'])) {
<a name="l150"><span class="linenum"> 150</span></a>                      continue;
<a name="l151"><span class="linenum"> 151</span></a>                  }
<a name="l152"><span class="linenum"> 152</span></a>  
<a name="l153"><span class="linenum"> 153</span></a>                  <a class="var it250" onMouseOver="hilite(250)" onMouseOut="lolite()" onClick="logVariable('pathinfo')" href="../../../_variables/pathinfo.html">$pathinfo</a> = <a class="phpfunction" onClick="logFunction('pathinfo')" href="../../../_functions/pathinfo.html" onMouseOver="phpfuncPopup(event,'pathinfo')">pathinfo</a>(<a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name']);
<a name="l154"><span class="linenum"> 154</span></a>                  <a class="var it251" onMouseOver="hilite(251)" onMouseOut="lolite()" onClick="logVariable('suffix')" href="../../../_variables/suffix.html">$suffix</a> = <a class="var it250" onMouseOver="hilite(250)" onMouseOut="lolite()" onClick="logVariable('pathinfo')" href="../../../_variables/pathinfo.html">$pathinfo</a>['extension'] ? '.' . <a class="phpfunction" onClick="logFunction('strtolower')" href="../../../_functions/strtolower.html" onMouseOver="phpfuncPopup(event,'strtolower')">strtolower</a>(<a class="var it250" onMouseOver="hilite(250)" onMouseOut="lolite()" onClick="logVariable('pathinfo')" href="../../../_variables/pathinfo.html">$pathinfo</a>['extension']) : '';
<a name="l155"><span class="linenum"> 155</span></a>                  if (!self::<a class="function" onClick="logFunction('check')" href="../../../_functions/check.html" onMouseOver="funcPopup(event,'check')">check</a>(<a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name'], <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['size'], <a class="var it251" onMouseOver="hilite(251)" onMouseOut="lolite()" onClick="logVariable('suffix')" href="../../../_variables/suffix.html">$suffix</a>, <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['error'])) {
<a name="l156"><span class="linenum"> 156</span></a>                      continue;
<a name="l157"><span class="linenum"> 157</span></a>                  }
<a name="l158"><span class="linenum"> 158</span></a>  
<a name="l159"><span class="linenum"> 159</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['suffix'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it251" onMouseOver="hilite(251)" onMouseOut="lolite()" onClick="logVariable('suffix')" href="../../../_variables/suffix.html">$suffix</a>;
<a name="l160"><span class="linenum"> 160</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['name'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name'];
<a name="l161"><span class="linenum"> 161</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['type'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['type'];
<a name="l162"><span class="linenum"> 162</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['size'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['size'];
<a name="l163"><span class="linenum"> 163</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['tmp_name'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['tmp_name'];
<a name="l164"><span class="linenum"> 164</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['name'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('getFileName')" href="../../../_functions/getfilename.html" onMouseOver="funcPopup(event,'getfilename')">getFileName</a>(<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>);
<a name="l165"><span class="linenum"> 165</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['suffix'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['suffix'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>];
<a name="l166"><span class="linenum"> 166</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['originName'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['name'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>];
<a name="l167"><span class="linenum"> 167</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['type'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['type'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>];
<a name="l168"><span class="linenum"> 168</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>]['size'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['size'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>];
<a name="l169"><span class="linenum"> 169</span></a>                  <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a>[<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('info')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/info.html">info</a>[<a class="var it79" onMouseOver="hilite(79)" onMouseOut="lolite()" onClick="logVariable('v')" href="../../../_variables/v.html">$v</a>];
<a name="l170"><span class="linenum"> 170</span></a>                  ++<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>;
<a name="l171"><span class="linenum"> 171</span></a>              }
<a name="l172"><span class="linenum"> 172</span></a>          }
<a name="l173"><span class="linenum"> 173</span></a>      }
<a name="l174"><span class="linenum"> 174</span></a>      <span class="comment">/**</span>
<a name="l175"><span class="linenum"> 175</span></a>  <span class="comment">     * 获取新文件名</span>
<a name="l176"><span class="linenum"> 176</span></a>  <span class="comment">     */</span>
<a name="l177"><span class="linenum"> 177</span></a>      private function <a class="function" onClick="logFunction('getFileName')" href="../../../_functions/getfilename.html" onMouseOver="funcPopup(event,'getfilename')">getFileName</a>(<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>)
<a name="l178"><span class="linenum"> 178</span></a>      {
<a name="l179"><span class="linenum"> 179</span></a>          if (<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('setName')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/setName.html">setName</a>) {
<a name="l180"><span class="linenum"> 180</span></a>              return <a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a> ? &quot;{<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('setName')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/setName.html">setName</a>}_{<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>}{<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['suffix'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]}&quot; : &quot;{<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('setName')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/setName.html">setName</a>}{<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['suffix'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]}&quot;;
<a name="l181"><span class="linenum"> 181</span></a>          }
<a name="l182"><span class="linenum"> 182</span></a>  
<a name="l183"><span class="linenum"> 183</span></a>          if (!<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('randName')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/randName.html">randName</a>) {
<a name="l184"><span class="linenum"> 184</span></a>              return <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['name'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>];
<a name="l185"><span class="linenum"> 185</span></a>          }
<a name="l186"><span class="linenum"> 186</span></a>  
<a name="l187"><span class="linenum"> 187</span></a>          <a class="var it252" onMouseOver="hilite(252)" onMouseOut="lolite()" onClick="logVariable('rand')" href="../../../_variables/rand.html">$rand</a> = <a class="phpfunction" onClick="logFunction('mt_rand')" href="../../../_functions/mt_rand.html" onMouseOver="phpfuncPopup(event,'mt_rand')">mt_rand</a>(0, 999999);
<a name="l188"><span class="linenum"> 188</span></a>          return <a class="phpfunction" onClick="logFunction('uniqid')" href="../../../_functions/uniqid.html" onMouseOver="phpfuncPopup(event,'uniqid')">uniqid</a>() . &quot;{<a class="var it252" onMouseOver="hilite(252)" onMouseOut="lolite()" onClick="logVariable('rand')" href="../../../_variables/rand.html">$rand</a>}{<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>}{<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['suffix'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]}&quot;;
<a name="l189"><span class="linenum"> 189</span></a>      }
<a name="l190"><span class="linenum"> 190</span></a>  
<a name="l191"><span class="linenum"> 191</span></a>      <span class="comment">/**</span>
<a name="l192"><span class="linenum"> 192</span></a>  <span class="comment">     * 创建目录</span>
<a name="l193"><span class="linenum"> 193</span></a>  <span class="comment">     */</span>
<a name="l194"><span class="linenum"> 194</span></a>      private function <a class="function" onClick="logFunction('makeDir')" href="../../../_functions/makedir.html" onMouseOver="funcPopup(event,'makedir')">makeDir</a>()
<a name="l195"><span class="linenum"> 195</span></a>      {
<a name="l196"><span class="linenum"> 196</span></a>          <a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a> = <a class="phpfunction" onClick="logFunction('rtrim')" href="../../../_functions/rtrim.html" onMouseOver="phpfuncPopup(event,'rtrim')">rtrim</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('path')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/path.html">path</a>, '/');
<a name="l197"><span class="linenum"> 197</span></a>          if ('/' != <a class="phpfunction" onClick="logFunction('substr')" href="../../../_functions/substr.html" onMouseOver="phpfuncPopup(event,'substr')">substr</a>(<a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a>, 0, 1) &amp;&amp; ':' != <a class="phpfunction" onClick="logFunction('substr')" href="../../../_functions/substr.html" onMouseOver="phpfuncPopup(event,'substr')">substr</a>(<a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a>, 1, 1)) {
<a name="l198"><span class="linenum"> 198</span></a>              <a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a> = <a class="constant" onClick="logConstant('P_IN')" href="../../../_constants/P_IN.html" onMouseOver="constPopup(event,'P_IN')">P_IN</a> . <a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a>;
<a name="l199"><span class="linenum"> 199</span></a>          }
<a name="l200"><span class="linenum"> 200</span></a>  
<a name="l201"><span class="linenum"> 201</span></a>          if (<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('subPath')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/subPath.html">subPath</a>) {
<a name="l202"><span class="linenum"> 202</span></a>              <a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a> .= '/' . <a class="phpfunction" onClick="logFunction('trim')" href="../../../_functions/trim.html" onMouseOver="phpfuncPopup(event,'trim')">trim</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('subPath')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/subPath.html">subPath</a>, '/');
<a name="l203"><span class="linenum"> 203</span></a>          }
<a name="l204"><span class="linenum"> 204</span></a>  
<a name="l205"><span class="linenum"> 205</span></a>          <a class="function" onClick="logFunction('MakeDir')" href="../../../_functions/makedir.html" onMouseOver="funcPopup(event,'makedir')">MakeDir</a>(<a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a>);
<a name="l206"><span class="linenum"> 206</span></a>          if (!<a class="phpfunction" onClick="logFunction('is_writable')" href="../../../_functions/is_writable.html" onMouseOver="phpfuncPopup(event,'is_writable')">is_writable</a>(<a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a>)) {
<a name="l207"><span class="linenum"> 207</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('error')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/error.html">error</a>[] = &quot;目录[{<a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a>}]不可写，请检查权限&quot;;
<a name="l208"><span class="linenum"> 208</span></a>              return false;
<a name="l209"><span class="linenum"> 209</span></a>          } else {
<a name="l210"><span class="linenum"> 210</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('savePath')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/savePath.html">savePath</a> = <a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a>;
<a name="l211"><span class="linenum"> 211</span></a>              return <a class="var it103" onMouseOver="hilite(103)" onMouseOut="lolite()" onClick="logVariable('path')" href="../../../_variables/path.html">$path</a>;
<a name="l212"><span class="linenum"> 212</span></a>          }
<a name="l213"><span class="linenum"> 213</span></a>      }
<a name="l214"><span class="linenum"> 214</span></a>  
<a name="l215"><span class="linenum"> 215</span></a>      <span class="comment">/**</span>
<a name="l216"><span class="linenum"> 216</span></a>  <span class="comment">     * 设置文件信息</span>
<a name="l217"><span class="linenum"> 217</span></a>  <span class="comment">     * @param [type] $i [description]</span>
<a name="l218"><span class="linenum"> 218</span></a>  <span class="comment">     */</span>
<a name="l219"><span class="linenum"> 219</span></a>      private function <a class="function" onClick="logFunction('setFileInfo')" href="../../../_functions/setfileinfo.html" onMouseOver="funcPopup(event,'setfileinfo')">setFileInfo</a>(<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>)
<a name="l220"><span class="linenum"> 220</span></a>      {
<a name="l221"><span class="linenum"> 221</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a>[<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]['name'] = <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('getFileName')" href="../../../_functions/getfilename.html" onMouseOver="funcPopup(event,'getfilename')">getFileName</a>(<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>);
<a name="l222"><span class="linenum"> 222</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a>[<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]['path'] = &quot;{<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('savePath')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/savePath.html">savePath</a>}/{<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a>[<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]['name']}&quot;;
<a name="l223"><span class="linenum"> 223</span></a>          <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a>[<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]['src'] = <a class="constant" onClick="logConstant('U_HOME')" href="../../../_constants/U_HOME.html" onMouseOver="constPopup(event,'U_HOME')">U_HOME</a> . <a class="phpfunction" onClick="logFunction('substr')" href="../../../_functions/substr.html" onMouseOver="phpfuncPopup(event,'substr')">substr</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a>[<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]['path'], <a class="constant" onClick="logConstant('LEN_IN')" href="../../../_constants/LEN_IN.html" onMouseOver="constPopup(event,'LEN_IN')">LEN_IN</a>);
<a name="l224"><span class="linenum"> 224</span></a>      }
<a name="l225"><span class="linenum"> 225</span></a>  
<a name="l226"><span class="linenum"> 226</span></a>      <span class="comment">/**</span>
<a name="l227"><span class="linenum"> 227</span></a>  <span class="comment">     * 保存文件</span>
<a name="l228"><span class="linenum"> 228</span></a>  <span class="comment">     * @param  [type] $i [description]</span>
<a name="l229"><span class="linenum"> 229</span></a>  <span class="comment">     * @return [type]    [description]</span>
<a name="l230"><span class="linenum"> 230</span></a>  <span class="comment">     */</span>
<a name="l231"><span class="linenum"> 231</span></a>      private function <a class="function" onClick="logFunction('moveFile')" href="../../../_functions/movefile.html" onMouseOver="funcPopup(event,'movefile')">moveFile</a>(<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>)
<a name="l232"><span class="linenum"> 232</span></a>      {
<a name="l233"><span class="linenum"> 233</span></a>          <a class="var it253" onMouseOver="hilite(253)" onMouseOut="lolite()" onClick="logVariable('mov')" href="../../../_variables/mov.html">$mov</a> = <a class="phpfunction" onClick="logFunction('move_uploaded_file')" href="../../../_functions/move_uploaded_file.html" onMouseOver="phpfuncPopup(event,'move_uploaded_file')">move_uploaded_file</a>(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['tmp_name'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>], iconv(&quot;UTF-8&quot;, &quot;GBK&quot;, <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a>[<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]['path']));
<a name="l234"><span class="linenum"> 234</span></a>          if (<a class="var it253" onMouseOver="hilite(253)" onMouseOut="lolite()" onClick="logVariable('mov')" href="../../../_variables/mov.html">$mov</a>) {
<a name="l235"><span class="linenum"> 235</span></a>              return true;
<a name="l236"><span class="linenum"> 236</span></a>          } else {
<a name="l237"><span class="linenum"> 237</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('error')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/error.html">error</a>[] = &quot;文件[{<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('filesInfo')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/filesInfo.html">filesInfo</a>['name'][<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]}]保存失败&quot;;
<a name="l238"><span class="linenum"> 238</span></a>              unset(<a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('mapping')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/mapping.html">mapping</a>[<a class="var it37" onMouseOver="hilite(37)" onMouseOut="lolite()" onClick="logVariable('i')" href="../../../_variables/i.html">$i</a>]);
<a name="l239"><span class="linenum"> 239</span></a>              return false;
<a name="l240"><span class="linenum"> 240</span></a>          }
<a name="l241"><span class="linenum"> 241</span></a>      }
<a name="l242"><span class="linenum"> 242</span></a>  
<a name="l243"><span class="linenum"> 243</span></a>      <span class="comment">/**</span>
<a name="l244"><span class="linenum"> 244</span></a>  <span class="comment">     * 检查POST数据是否合法</span>
<a name="l245"><span class="linenum"> 245</span></a>  <span class="comment">     * @return [type] [description]</span>
<a name="l246"><span class="linenum"> 246</span></a>  <span class="comment">     */</span>
<a name="l247"><span class="linenum"> 247</span></a>      private function <a class="function" onClick="logFunction('checkLength')" href="../../../_functions/checklength.html" onMouseOver="funcPopup(event,'checklength')">checkLength</a>()
<a name="l248"><span class="linenum"> 248</span></a>      {
<a name="l249"><span class="linenum"> 249</span></a>          if (empty(<a class="var it249" onMouseOver="hilite(249)" onMouseOut="lolite()" onClick="logVariable('_FILES')" href="../../../_variables/_FILES.html">$_FILES</a>)) {
<a name="l250"><span class="linenum"> 250</span></a>              <a class="var it254" onMouseOver="hilite(254)" onMouseOut="lolite()" onClick="logVariable('size')" href="../../../_variables/size.html">$size</a> = <a class="phpfunction" onClick="logFunction('ini_get')" href="../../../_functions/ini_get.html" onMouseOver="phpfuncPopup(event,'ini_get')">ini_get</a>(&quot;post_max_size&quot;);
<a name="l251"><span class="linenum"> 251</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('error')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/error.html">error</a>[] = &quot;没有上传文件或者数据大小超出[post_max_size:{<a class="var it254" onMouseOver="hilite(254)" onMouseOut="lolite()" onClick="logVariable('size')" href="../../../_variables/size.html">$size</a>}]，请检查PHP配置文件&quot;;
<a name="l252"><span class="linenum"> 252</span></a>              return 0;
<a name="l253"><span class="linenum"> 253</span></a>          }
<a name="l254"><span class="linenum"> 254</span></a>          return 1;
<a name="l255"><span class="linenum"> 255</span></a>      }
<a name="l256"><span class="linenum"> 256</span></a>  
<a name="l257"><span class="linenum"> 257</span></a>      <span class="comment">/**</span>
<a name="l258"><span class="linenum"> 258</span></a>  <span class="comment">     * 检查文件合法性</span>
<a name="l259"><span class="linenum"> 259</span></a>  <span class="comment">     * @param  [string] $name 文件名</span>
<a name="l260"><span class="linenum"> 260</span></a>  <span class="comment">     * @param  [integer] $size 文件大小</span>
<a name="l261"><span class="linenum"> 261</span></a>  <span class="comment">     * @param  [string] $fix  文件后缀</span>
<a name="l262"><span class="linenum"> 262</span></a>  <span class="comment">     * @param  [integer] $err  错误号</span>
<a name="l263"><span class="linenum"> 263</span></a>  <span class="comment">     * @return [integer]       [description]</span>
<a name="l264"><span class="linenum"> 264</span></a>  <span class="comment">     */</span>
<a name="l265"><span class="linenum"> 265</span></a>      private function <a class="function" onClick="logFunction('check')" href="../../../_functions/check.html" onMouseOver="funcPopup(event,'check')">check</a>(<a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a>, <a class="var it254" onMouseOver="hilite(254)" onMouseOut="lolite()" onClick="logVariable('size')" href="../../../_variables/size.html">$size</a>, <a class="var it255" onMouseOver="hilite(255)" onMouseOut="lolite()" onClick="logVariable('fix')" href="../../../_variables/fix.html">$fix</a>, <a class="var it256" onMouseOver="hilite(256)" onMouseOut="lolite()" onClick="logVariable('err')" href="../../../_variables/err.html">$err</a>)
<a name="l266"><span class="linenum"> 266</span></a>      {
<a name="l267"><span class="linenum"> 267</span></a>          return 3 == <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('checkSize')" href="../../../_functions/checksize.html" onMouseOver="funcPopup(event,'checksize')">checkSize</a>(<a class="var it254" onMouseOver="hilite(254)" onMouseOut="lolite()" onClick="logVariable('size')" href="../../../_variables/size.html">$size</a>, <a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a>) + <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('checkType')" href="../../../_functions/checktype.html" onMouseOver="funcPopup(event,'checktype')">checkType</a>(<a class="var it255" onMouseOver="hilite(255)" onMouseOut="lolite()" onClick="logVariable('fix')" href="../../../_variables/fix.html">$fix</a>, <a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a>) + <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a class="function" onClick="logFunction('checkErr')" href="../../../_functions/checkerr.html" onMouseOver="funcPopup(event,'checkerr')">checkErr</a>(<a class="var it256" onMouseOver="hilite(256)" onMouseOut="lolite()" onClick="logVariable('err')" href="../../../_variables/err.html">$err</a>, <a class="var it32" onMouseOver="hilite(32)" onMouseOut="lolite()" onClick="logVariable('name')" href="../../../_variables/name.html">$name</a>);
<a name="l268"><span class="linenum"> 268</span></a>      }
<a name="l269"><span class="linenum"> 269</span></a>  
<a name="l270"><span class="linenum"> 270</span></a>      <span class="comment">/**</span>
<a name="l271"><span class="linenum"> 271</span></a>  <span class="comment">     * 检查文件大小</span>
<a name="l272"><span class="linenum"> 272</span></a>  <span class="comment">     * @param  [integer] $size     [description]</span>
<a name="l273"><span class="linenum"> 273</span></a>  <span class="comment">     * @param  [string] $fileName [description]</span>
<a name="l274"><span class="linenum"> 274</span></a>  <span class="comment">     * @return [integer]           [description]</span>
<a name="l275"><span class="linenum"> 275</span></a>  <span class="comment">     */</span>
<a name="l276"><span class="linenum"> 276</span></a>      private function <a class="function" onClick="logFunction('checkSize')" href="../../../_functions/checksize.html" onMouseOver="funcPopup(event,'checksize')">checkSize</a>(<a class="var it254" onMouseOver="hilite(254)" onMouseOut="lolite()" onClick="logVariable('size')" href="../../../_variables/size.html">$size</a>, <a class="var it257" onMouseOver="hilite(257)" onMouseOut="lolite()" onClick="logVariable('fileName')" href="../../../_variables/fileName.html">$fileName</a>)
<a name="l277"><span class="linenum"> 277</span></a>      {
<a name="l278"><span class="linenum"> 278</span></a>          if (!<a class="var it254" onMouseOver="hilite(254)" onMouseOut="lolite()" onClick="logVariable('size')" href="../../../_variables/size.html">$size</a>) {
<a name="l279"><span class="linenum"> 279</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('error')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/error.html">error</a>[] = &quot;{<a class="var it257" onMouseOver="hilite(257)" onMouseOut="lolite()" onClick="logVariable('fileName')" href="../../../_variables/fileName.html">$fileName</a>}:文件大小错误&quot;;
<a name="l280"><span class="linenum"> 280</span></a>              return 0;
<a name="l281"><span class="linenum"> 281</span></a>          } elseif (<a class="var it254" onMouseOver="hilite(254)" onMouseOut="lolite()" onClick="logVariable('size')" href="../../../_variables/size.html">$size</a> &gt; <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('maxSize')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/maxSize.html">maxSize</a>) {
<a name="l282"><span class="linenum"> 282</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('error')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/error.html">error</a>[] = &quot;{<a class="var it257" onMouseOver="hilite(257)" onMouseOut="lolite()" onClick="logVariable('fileName')" href="../../../_variables/fileName.html">$fileName</a>}:文件大小超过限制&quot;;
<a name="l283"><span class="linenum"> 283</span></a>              return 0;
<a name="l284"><span class="linenum"> 284</span></a>          } else {
<a name="l285"><span class="linenum"> 285</span></a>              return 1;
<a name="l286"><span class="linenum"> 286</span></a>          }
<a name="l287"><span class="linenum"> 287</span></a>  
<a name="l288"><span class="linenum"> 288</span></a>      }
<a name="l289"><span class="linenum"> 289</span></a>  
<a name="l290"><span class="linenum"> 290</span></a>      <span class="comment">/**</span>
<a name="l291"><span class="linenum"> 291</span></a>  <span class="comment">     * 检查文件后缀合法性</span>
<a name="l292"><span class="linenum"> 292</span></a>  <span class="comment">     * @param  [string] $fix      [description]</span>
<a name="l293"><span class="linenum"> 293</span></a>  <span class="comment">     * @param  [string] $fileName [description]</span>
<a name="l294"><span class="linenum"> 294</span></a>  <span class="comment">     * @return [integer]           [description]</span>
<a name="l295"><span class="linenum"> 295</span></a>  <span class="comment">     */</span>
<a name="l296"><span class="linenum"> 296</span></a>      private function <a class="function" onClick="logFunction('checkType')" href="../../../_functions/checktype.html" onMouseOver="funcPopup(event,'checktype')">checkType</a>(<a class="var it255" onMouseOver="hilite(255)" onMouseOut="lolite()" onClick="logVariable('fix')" href="../../../_variables/fix.html">$fix</a>, <a class="var it257" onMouseOver="hilite(257)" onMouseOut="lolite()" onClick="logVariable('fileName')" href="../../../_variables/fileName.html">$fileName</a>)
<a name="l297"><span class="linenum"> 297</span></a>      {
<a name="l298"><span class="linenum"> 298</span></a>          if (<a class="var it255" onMouseOver="hilite(255)" onMouseOut="lolite()" onClick="logVariable('fix')" href="../../../_variables/fix.html">$fix</a> &amp;&amp; !<a class="phpfunction" onClick="logFunction('in_array')" href="../../../_functions/in_array.html" onMouseOver="phpfuncPopup(event,'in_array')">in_array</a>(<a class="var it255" onMouseOver="hilite(255)" onMouseOut="lolite()" onClick="logVariable('fix')" href="../../../_variables/fix.html">$fix</a>, <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('allowType')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/allowType.html">allowType</a>)) {
<a name="l299"><span class="linenum"> 299</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('error')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/error.html">error</a>[] = &quot;{<a class="var it257" onMouseOver="hilite(257)" onMouseOut="lolite()" onClick="logVariable('fileName')" href="../../../_variables/fileName.html">$fileName</a>}:不允许的文件类型&quot;;
<a name="l300"><span class="linenum"> 300</span></a>              return 0;
<a name="l301"><span class="linenum"> 301</span></a>          } else {
<a name="l302"><span class="linenum"> 302</span></a>              return 1;
<a name="l303"><span class="linenum"> 303</span></a>          }
<a name="l304"><span class="linenum"> 304</span></a>  
<a name="l305"><span class="linenum"> 305</span></a>      }
<a name="l306"><span class="linenum"> 306</span></a>  
<a name="l307"><span class="linenum"> 307</span></a>      <span class="comment">/**</span>
<a name="l308"><span class="linenum"> 308</span></a>  <span class="comment">     * 检查错误号</span>
<a name="l309"><span class="linenum"> 309</span></a>  <span class="comment">     * @param  [integer] $err      [description]</span>
<a name="l310"><span class="linenum"> 310</span></a>  <span class="comment">     * @param  [string] $fileName [description]</span>
<a name="l311"><span class="linenum"> 311</span></a>  <span class="comment">     * @return [integer]           [description]</span>
<a name="l312"><span class="linenum"> 312</span></a>  <span class="comment">     */</span>
<a name="l313"><span class="linenum"> 313</span></a>      private function <a class="function" onClick="logFunction('checkErr')" href="../../../_functions/checkerr.html" onMouseOver="funcPopup(event,'checkerr')">checkErr</a>(<a class="var it256" onMouseOver="hilite(256)" onMouseOut="lolite()" onClick="logVariable('err')" href="../../../_variables/err.html">$err</a>, <a class="var it257" onMouseOver="hilite(257)" onMouseOut="lolite()" onClick="logVariable('fileName')" href="../../../_variables/fileName.html">$fileName</a>)
<a name="l314"><span class="linenum"> 314</span></a>      {
<a name="l315"><span class="linenum"> 315</span></a>          if (<a class="var it256" onMouseOver="hilite(256)" onMouseOut="lolite()" onClick="logVariable('err')" href="../../../_variables/err.html">$err</a>) {
<a name="l316"><span class="linenum"> 316</span></a>              <a class="var it6" onMouseOver="hilite(6)" onMouseOut="lolite()" onClick="logVariable('this')" href="../../../_variables/this.html">$this</a>-&gt;<a onClick="logVariable('error')" class="var it344" onMouseOver="hilite(344)" onMouseOut="lolite()" href="../../../_variables/error.html">error</a>[] = isset(self::<a class="var it237" onMouseOver="hilite(237)" onMouseOut="lolite()" onClick="logVariable('errorMsg')" href="../../../_variables/errorMsg.html">$errorMsg</a>[<a class="var it256" onMouseOver="hilite(256)" onMouseOut="lolite()" onClick="logVariable('err')" href="../../../_variables/err.html">$err</a>]) ? &quot;{<a class="var it257" onMouseOver="hilite(257)" onMouseOut="lolite()" onClick="logVariable('fileName')" href="../../../_variables/fileName.html">$fileName</a>}:&quot; . self::<a class="var it237" onMouseOver="hilite(237)" onMouseOut="lolite()" onClick="logVariable('errorMsg')" href="../../../_variables/errorMsg.html">$errorMsg</a>[<a class="var it256" onMouseOver="hilite(256)" onMouseOut="lolite()" onClick="logVariable('err')" href="../../../_variables/err.html">$err</a>] : &quot;{<a class="var it257" onMouseOver="hilite(257)" onMouseOut="lolite()" onClick="logVariable('fileName')" href="../../../_variables/fileName.html">$fileName</a>}:未知错误&quot;;
<a name="l317"><span class="linenum"> 317</span></a>              return 0;
<a name="l318"><span class="linenum"> 318</span></a>          } else {
<a name="l319"><span class="linenum"> 319</span></a>              return 1;
<a name="l320"><span class="linenum"> 320</span></a>          }
<a name="l321"><span class="linenum"> 321</span></a>      }
<a name="l322"><span class="linenum"> 322</span></a>  }
</pre>
</div>
<script language="JavaScript" type="text/javascript">
FUNC_DATA={
'checklength': ['checklength', '检查POST数据是否合法 ', [['core/v0.1/ext','upload.class.php',243]], 1],
'getinfo': ['getinfo', '返回文件信息 ', [['core/v0.1/ext','upload.class.php',103]], 0],
'__construct': ['__construct', '', [['base','model.class.php',6],['core/v0.1/ext','verimg.class.php',18],['core/v0.1/ext','db.class.php',47],['core/v0.1/ext','upload.class.php',28],['core/v0.1/z','pdo.class.php',23]], 0],
'geterror': ['geterror', '', [['base','model.class.php',21],['core/v0.1/ext','db.class.php',74],['core/v0.1/ext','upload.class.php',67]], 0],
'setfileinfo': ['setfileinfo', '设置文件信息 ', [['core/v0.1/ext','upload.class.php',215]], 1],
'getfiles': ['getfiles', '获取文件基本信息 ', [['core/v0.1/ext','upload.class.php',113]], 1],
'set': ['set', '', [['core/v0.1/ext','verimg.class.php',33],['core/v0.1/ext','upload.class.php',51]], 12],
'checktype': ['checktype', '检查文件后缀合法性 ', [['core/v0.1/ext','upload.class.php',290]], 1],
'movefile': ['movefile', '保存文件 ', [['core/v0.1/ext','upload.class.php',226]], 1],
'getfilename': ['getfilename', '获取新文件名 ', [['core/v0.1/ext','upload.class.php',174]], 3],
'makedir': ['makedir', '创建目录 ', [['core/v0.1/ext','upload.class.php',191],['core/v0.1','core.php',129]], 9],
'checksize': ['checksize', '检查文件大小 ', [['core/v0.1/ext','upload.class.php',270]], 1],
'check': ['check', '检查验证码是否正确 ', [['core/v0.1/ext','verimg.class.php',109],['core/v0.1/ext','upload.class.php',257]], 2],
'upload': ['upload', '[执行上传操作] ', [['core/v0.1/ext','upload.class.php',76]], 0],
'checkerr': ['checkerr', '检查错误号 ', [['core/v0.1/ext','upload.class.php',307]], 1],
'move_uploaded_file': ['move_uploaded_file', '', [], 1],
'is_writable': ['is_writable', '', [], 1],
'substr': ['substr', '', [], 7],
'mt_rand': ['mt_rand', '', [], 26],
'is_array': ['is_array', '', [], 34],
'strtolower': ['strtolower', '', [], 7],
'array_keys': ['array_keys', '', [], 2],
'rtrim': ['rtrim', '', [], 4],
'pathinfo': ['pathinfo', '', [], 4],
'trim': ['trim', '', [], 17],
'ini_get': ['ini_get', '', [], 1],
'in_array': ['in_array', '', [], 2],
'uniqid': ['uniqid', '', [], 1]};
CLASS_DATA={
'upload': ['upload', '$conf[\'path\'] = P_PUBLIC . \'uploads/img\'; $conf[\'allowType\'] = array(\'jpg\',\'gif\',\'png\'); $conf[\'maxSize\'] = 1024*1024; $up = new upload($conf); $result = $up->upload(true);//参数true遇到错误继续，返回上传的文件信息，键名对应表单的name值 $info = $up->getInfo();//返回上传文件信息，索引数组 $err = $up->getError();//返回错误信息，数组 ', [['core/v0.1/ext','upload.class.php',2]], 0]};
CONST_DATA={
'LEN_IN': ['LEN_IN', '', [['core/v0.1','core.php',37]], 2],
'P_IN': ['P_IN', '', [['core/v0.1','core.php',23]], 8],
'U_HOME': ['U_HOME', '', [['core/v0.1','core.php',16]], 7]};
</script>
<div id="func-popup" class="funcpopup"><p id="func-title" class="popup-title">title</p><p id="func-desc" class="popup-desc">Description</p><p id="func-body" class="popup-body">Body</p></div>
<div id="class-popup" class="funcpopup"><p id="class-title" class="popup-title">title</p><p id="class-desc" class="popup-desc">Description</p><p id="class-body" class="popup-body">Body</p></div>
<div id="const-popup" class="funcpopup"><p id="const-title" class="popup-title">title</p><p id="const-desc" class="popup-desc">Description</p><p id="const-body" class="popup-body">Body</p></div>
<div id="req-popup" class="funcpopup"><p id="req-title" class="popup-title">title</p><p id="req-body" class="popup-body">Body</p></div>
<!-- A link to the phpxref site in your customized footer file is appreciated ;-) -->
<br><hr>
<table width="100%">
	<tr><td>Generated: Thu Sep 10 15:54:52 2020</td>
	<td align="right"><i>Cross-referenced by <a href="http://phpxref.sourceforge.net/">PHPXref 0.7.1</a></i></td>
	</tr>
</table>
</body></html>
